package cn.zjweu.service;

import cn.zjweu.pojo.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface CategoryService {
    List<Category> getAllCategory();

    List<Category> getLikeCategory(@Param("name") String name);

    int updateCategory(Category category);

    int addCategory(Category category);

    int deleteCategory(@Param("id") int id);

    List<Map<String, Object>> getCategory();
}
